#!/usr/bin/env python
# _*_coding:utf-8_*_

"""
@Time : 2022/5/7 11:49
@Author: RunAtWorld
@File: tips.py
"""

tmp = {'a': 'foo', 'b': 'bar'}
print('{a}{b}'.format(**tmp))

tmp = 'foo', 'bar'
print('{0}{1}'.format(*tmp))

tmp = ['foo', 'bar']
print('{0}{1}'.format(*tmp))

tmp = {'foo', 'bar'}
print('{0}{1}'.format(*tmp))
